using System;
using Lottery.App.Model;
using System.Collections.Generic;

namespace Lottery.App.DAL
{
    public class N3Dao : ResultDao<N3Info>
    {
        protected override IList<N3Info> GetItems(RecordInfo record)
        {
            List<string> array = Utility.Utils.Get8P3(record.ASC_Result);

            string hql = "from N3Info where Value in (:val)";

            return Session.CreateQuery(hql)
                .SetParameterList("val", array)
                .List<N3Info>();
        }


    }
}